#ifndef __CHIP_SELECT_DEFINE__
#define __CHIP_SELECT_DEFINE__


#define USE_TS32F020 0
#define USE_ATMEL 1





#if (1==USE_TS32F020)

#define bool	_Bool
#define true	1
#define false	0

//#include "../Hal/tk_cfg.h"
#include "../../Hal/tk_cfg.h"
#define xdata
typedef  unsigned int uint32_t;
#define FEED_WDT()
#define WDT_STOP() ll_wdt_stop(WDT)
#define SYSTEM_INIT()  SystemTickInit()
#endif

#if (1==USE_ATMEL)

#define bool	_Bool
#define true	1
#define false	0

#ifndef NULL
#define NULL 0
#endif

#define  FEED_WDT()
#define xdata
//#include <atmel_start.h>
/*
typedef unsigned long long uint32_t;

typedef unsigned short uint16_t;


typedef enum{
	false = 0,
	true
} bool;
*/
typedef unsigned long long u64;
typedef unsigned long u32;
typedef unsigned long uint32_t;
typedef long s32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef enum{
	GPIOA = 0,
	GPIOB = 1, 
	GPIOC = 2,
	GPIOD,
	GPIOE,
	GPIOF,
	GPIOG,
	GPIOH,
	GPIOI,
	GPIOJ,
	GPIOK,
	GPIOL
}GPIO_TypeDef;

#define GetSysTick() CntSysTick
#endif







#endif
